#include<iostream>
#include<fstream>
using namespace std;

int main(int argc, char** argv){
	ifstream in(argv[1], ifstream::in);
	
	int id, max, min;
	float media, dev;
	
	int r = 0;
	int instance_class = 1;
	
	for(int i = 0; i < 45; ++i){
		in >> id >> media >> max >> min >> dev;
		
		if(r%100+20 == 20){
			cout << "\\multirow{5}{*}{$C_" << instance_class << "$}";
			++instance_class;
		}
		
		cout << " & " << r%100+20 << " & ";
		
		cout << media << " & " << max << " & " << min << " & " << dev << "\\\\";
		
		if(r%100+20 == 100)
			cout << " \\hline";
		
		cout << endl;
		r += 20;
	}
	
	in.close();
}